package com.xqboss.apps.dto.sys;

import com.xqboss.apps.dto.PageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "SnapshotDTO", description = "接收参数")
public class SnapshotDto extends PageDto {

    @ApiModelProperty("藏品ID集合")
    private List<Long> nftIds;


    @ApiModelProperty(value = "快照原因")
    @NotBlank(message = "请输入快照原因")
    private String snapshotCause;

    @ApiModelProperty("1藏品，2装备，3箱子")
    @NotNull(message = "快照类型不能为空")
    private Integer type;

    @ApiModelProperty("搜索关键字")
    private String search;

    @ApiModelProperty("用户id")
    private Long userId;
}
